package net.xdclass.config;


import java.util.Stack;

/**
 * 小滴课堂,愿景：让技术不再难学
 *
 * @Description
 * @Author 二当家小D
 * @Remark 有问题直接联系我，源码-笔记-技术交流群
 * @Version 1.0
 **/

public class WechatPayApi {


    /**
     * 微信支付主机地址
     */
    // public static final String HOST = "https://api.mch.weixin.qq.com";
    public static final String HOST = "http://localhost:9001";

    public static final String PREFIX = "/wechat";


    /**
     * Native下单
     */
    public static final String NATIVE_ORDER = HOST + PREFIX + "/v3/pay/transactions/native";


    /**
     * Native订单状态查询, 根据商户订单号查询
     */
    public static final String NATIVE_QUERY = HOST + PREFIX + "/v3/pay/transactions/status?mchid=%s&out_trade_no=%s";


    /**
     * 关闭订单接口
     */
    public static final String NATIVE_CLOSE_ORDER = HOST + PREFIX + "/v3/pay/transactions/close?mchid=%s&out_trade_no=%s";


    /**
     * 申请退款接口  todo  并未重构
     */
    public static final String NATIVE_REFUND_ORDER = HOST + PREFIX + "/v3/refund/domestic/refunds";


    /**
     * 退款状态查询接口 todo 并未重构
     */
    public static final String NATIVE_REFUND_QUERY = HOST + PREFIX + "/v3/refund/domestic/refunds/%s";

}

